﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BomberManServer.Gaming.Object.Mapping.Model.States
{
    public class Spawn : State
    {
        private Player player;
        private UInt32 x_block, y_block;

        public Spawn(Player player,UInt32 x_block, UInt32 y_block)
        {
            this.player = player;
            this.x_block = x_block;
            this.y_block = y_block;
        }

        public override Mapping.Block build(Mapping.Block block)
        {
            // set the players avatar on the block
            block.item = player.avatar;
            player.avatar.spawn(block,x_block,y_block);
            return block;
        }
    }
}
